#include "RegDef.h"
std::map<unsigned, REGISTER_INFO>regDef;
void Register_Information_Initialize()
{
    for (int i = 0; i < 4; i++)
    {
        regDef[i * 10] = REGISTER_INFO((i << 3)+7, 8);
        regDef[i * 10 + 1] = REGISTER_INFO((i << 3) + 3, 4);
        regDef[i * 10 + 2] = REGISTER_INFO((i << 3) + 1, 2);
        regDef[i * 10 + 3] = REGISTER_INFO((i << 3) + 1, 1);
        regDef[i * 10 + 4] = REGISTER_INFO((i << 3) + 0, 1);
    }
    for (int i = 5; i < 16; i++)
    {
        regDef[i * 10] = REGISTER_INFO((i << 3) + 7, 8);
        regDef[i * 10 + 1] = REGISTER_INFO((i << 3) + 3, 4);
        regDef[i * 10 + 2] = REGISTER_INFO((i << 3) + 1, 2);
        regDef[i * 10 + 3] = REGISTER_INFO((i << 3) + 0, 1);
    }
    regDef[RIP] = REGISTER_INFO((16 << 3) + 7, 8);
    regDef[EIP] = REGISTER_INFO((16 << 3) + 3, 4);
    regDef[IP] = REGISTER_INFO((16 << 3) + 1, 2);
    /*
    * Register designed as https://blog.csdn.net/qq_34908601/article/details/123772569
    */
}